<?php /* Smarty version 2.6.22, created on 2009-05-27 15:37:29
         compiled from /home/renat/www/clean.ringo/www/control/_templates/templates/list.tpl */ ?>
<p><?php echo $this->_tpl_vars['err']; ?>
</p>
<div style="padding-left: 450px; border-bottom:dotted black 1px;">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root'])."/control/_templates/templates/templates_tree.tpl", 'smarty_include_vars' => array('tree' => $this->_tpl_vars['templates'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<div style="text-align:center;">
    <p><b>Добавление шаблона:</b></p>
    <form method="POST">
     <input name="mode" value="add" type="hidden">
    <table border="0" align="center">
        <tr><td align="left">Имя шаблона</td><td><input type="text" name="alias" maxlength="64"/></td></tr>
        <tr><td align="left">Файл .dwt</td><td><select name="template"><?php $_from = $this->_tpl_vars['dwts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?><option value="<?php echo $this->_tpl_vars['d']; ?>
"><?php echo $this->_tpl_vars['d']; ?>
</option><?php endforeach; endif; unset($_from); ?></select></td></tr>
        <tr><td align="left">Родительский шаблон</td><td><select name="parent_id"><option value="0"></option><?php echo $this->_tpl_vars['select']; ?>
</select></td></tr>
        <tr><td colspan="2" align="center"><input type="submit" value="Добавить"></td></tr>
    </table>
    </form>
</div>
 